import API from '@/utils/request'

//添加评论
export const addComment = (data) => {
    return API.post('/comment/add', data)
}

//获取评论
export const getComment = (spuId,option) => {
    return API.get('/comment', {params:{id:spuId,option}})
}